/* Copyright (c) 2004-2024 Peigen.info. All rights reserved. */

package info.peigen.hotpot.business.customer.facade.order.weixin.miniapp;

import info.peigen.hotpot.business.customer.facade.enums.CustomerSource;
import info.peigen.hotpot.business.customer.facade.order.base.CustomerServiceOrderBase;
import jakarta.validation.constraints.NotEmpty;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;
import lombok.experimental.SuperBuilder;

/**
 * <b>(CustomerWxMiniappLoginOrder)</b>
 *
 * @author czj
 * @version 1.0.0
 * @since 2022/8/3
 */
@EqualsAndHashCode(callSuper = true)
@SuperBuilder
@Data
@NoArgsConstructor
@AllArgsConstructor
@FieldDefaults(level = AccessLevel.PRIVATE)
@Accessors(chain = true)
public class CustomerWxMiniappLoginOrder extends CustomerServiceOrderBase {
    /** 从微信服务器请求到的获取openid的code */
    @NotEmpty
    String code;
    /** 站点id */
    String stationId;
    @NotEmpty
    String openid;
    String sessionKey;
    @Builder.Default
    CustomerSource source = CustomerSource.Weixin;
    String memo;
}
